<?php
class Setting extends AppModel {

	var $name = 'Setting';
	var $primaryKey = 'key';
	var $validate = array(
		'key' => array(
			'rule1' => array(
				'rule' => 'notEmpty'
			),
			'rule2' => array(
				'rule' => 'isUnique'
			)
		),
		'name' => array('notEmpty'),
		'value' => array('notEmpty')
	);

}
?>